docs: update to use provideAuth0 and provideAppInitializer#756
Merged
frederikprijck merged 2 commits intomainfrom Jan 5, 2026
Merged
docs: update to use provideAuth0 and provideAppInitializer#756frederikprijck merged 2 commits intomainfrom
frederikprijck merged 2 commits intomainfrom
Conversation
- Replace deprecated APP_INITIALIZER with provideAppInitializer - Show provideAuth0() as primary configuration method - Move NgModule examples to collapsible legacy sections - Update for Angular 19+ best practices Fixes #672
frederikprijck
approved these changes
Jan 5, 2026
frederikprijck
requested changes
Jan 5, 2026
Member
frederikprijck
left a comment
There was a problem hiding this comment.
I accidentally approved, wanted to request changes.
- Changed from 'For modern Angular applications (v19+)' to 'The recommended approach' - provideAuth0() works from Angular 15+, not just 19+ - Addresses PR feedback from @frederikprijck
frederikprijck
approved these changes
Jan 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Updates the README documentation to reflect modern Angular (v19+) best practices:
APP_INITIALIZERwithprovideAppInitializer()provideAuth0()as the primary configuration methodAuthModule.forRoot()examples to collapsible "Legacy Approach" sectionsinject()usageMotivation
Addresses #672 - The documentation was showing deprecated patterns (
APP_INITIALIZER) which are no longer recommended in Angular 19+. This update ensures developers see the modern functional approach first while still providing NgModule examples for those who need them.Testing
Related Issues
Fixes #672